package edu.jsnu.purchase.ticket.controller.common;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/error")
public class ErrorController extends AbstractController{
	
	@RequestMapping("/403.page")
	public ModelAndView error403(){
		return new ModelAndView("error/403");
	}

	@RequestMapping("/404.page")
	public String  error404(){
		return "error/404";
	}
	
	@RequestMapping("/500.page")
	public String error500(Model model){
		return "error/500";
	}
	
}
